package com.knowif.dao;

import com.knowif.pojo.UserOrderStatus;
import com.knowif.pojo.UserOrderStatusExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserOrderStatusMapper {
    int countByExample(UserOrderStatusExample example);

    int deleteByExample(UserOrderStatusExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserOrderStatus record);

    int insertSelective(UserOrderStatus record);

    List<UserOrderStatus> selectByExample(UserOrderStatusExample example);

    UserOrderStatus selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserOrderStatus record, @Param("example") UserOrderStatusExample example);

    int updateByExample(@Param("record") UserOrderStatus record, @Param("example") UserOrderStatusExample example);

    int updateByPrimaryKeySelective(UserOrderStatus record);

    //通过订单id更新订单状态表
    int updateByOrderIdSelective(UserOrderStatus record);

    int updateByPrimaryKey(UserOrderStatus record);

    List<UserOrderStatus> selectHavingOrderId();//查询没有支付的订单

    UserOrderStatus selectByOrderId(@Param("userOrderId") int userOrderId,@Param("status") int status);

}